package com.sc.pojo;

import java.util.Date;
//一个用户只能对应一个用户信息:添加用户信息对象
//一个用户也会属于一个部门对象:添加部门对象
public class Huser {
    private Huserinfo info; //关联属性
    private Hdept dept;//关联属性
    private Integer id;
    private String account;//和数据库字段不同的
    private String password;
    private Date createtime;
    private Integer did;
    public Huser() {
    }
    public Huser(Integer id, String account, String password, Date createtime, Integer did) {
        this.id = id;
        this.account = account;
        this.password = password;
        this.createtime = createtime;
        this.did = did;
    }

    public void setDept(Hdept dept) {
        this.dept = dept;
    }

    public Hdept getDept() {
        return dept;
    }

    public Huserinfo getInfo() {
        return info;
    }

    public void setInfo(Huserinfo info) {
        this.info = info;
    }

    public String toString() {
        return "Huser{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", createtime=" + createtime +
                ", did=" + did +
                '}';
    }

    public String getAccount() {
        return account;
    }
    public void setAccount(String account) {
        this.account = account;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }
}
